package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.example.entity.User;

@Mapper
public interface UserMapper extends BaseMapper<User>{
    //根据用户id查询用户信息
    User selectUserById(Integer id);

    //根据用户id修改用户信息
    int updateUserByUsername(User user);

}
